package cn.lil.model;

public class OrderItem {
    private int id;
    private float price;
    private int amount;
    private int bearingId;
    private int orderId;

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", price=" + price +
                ", amount=" + amount +
                ", bearingId=" + bearingId +
                ", orderId=" + orderId +
                '}';
    }

    public OrderItem() {
    }

    public OrderItem(int id, float price, int amount, int bearingId, int orderId) {
        this.id = id;
        this.price = price;
        this.amount = amount;
        this.bearingId = bearingId;
        this.orderId = orderId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getBearingId() {
        return bearingId;
    }

    public void setBearingId(int bearingId) {
        this.bearingId = bearingId;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }
}
